<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link type="text/css" rel="stylesheet" href="css/company.css" />
   <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
   <%--<script type="text/javascript" src="js/company.js"></script>--%>
   <link type="text/css" rel="stylesheet" href="css/message.css" />
   <title>职位信息</title>
</head>
<script type="text/javascript">

            var uid = ${sessionScope.user.uid}

           $(document).ready(function () {

              $.extend({message:function(j){var e={message:" 操作成功",time:"2000",type:"success",showClose:false,autoClose:true,onClose:function(){}};if(typeof j==="string"){e.message=j}if(typeof j==="object"){e=$.extend({},e,j)}var c=e.showClose?'<a class="c-message--close">×</a>':"";var i='<div class="c-message messageFadeInDown"><div class="c-message--main"><i class=" c-message--icon c-message--'+e.type+'"></i>'+c+'<div class="c-message--tip">'+e.message+"</div></div></div>";var h=this;var f=$("body");var g=$(i);var d;var a,b;a=function(){g.addClass("messageFadeOutUp");g.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){b()})};b=function(){g.remove();e.onClose(e);clearTimeout(d)};$(".c-message").remove();f.append(g);g.css({"margin-left":"-"+g.width()/2+"px"});g.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){g.removeClass("messageFadeInDown")});f.on("click",".c-message--close",function(k){a()});if(e.autoClose){d=setTimeout(function(){a()},e.time)}}});
              if (uid!="[object Object]"){
                 $("[name='persionregister']").text("首页");
                 $("[name='persionloging']").text("${sessionScope.user.uname}");
                 $("[name='persionloging']").on("click",function () {
                       window.location = "personal_resume.jsp";
                 });
                 $("[name='persionregister']").on("click",function () {
                       window.location = "index.jsp";
                 });
              }else {
                 $("[name='persionloging']").on("click",function () {
                    window.location = "login.jsp";
                 });
                 $("[name='persionregister']").on("click",function () {
                    window.location = "register.jsp";
                 });
              }

              var status;
              var eid = ${job.enterprise.eid}
              var jid = ${job.jid}
              if (${job.jobuserstatus == "1"}){
                 status="<div class=\"divJob_2_1\" id="+eid+" value="+jid+">已申请</div>"
              }else {
                  status="<div class=divJob_2_1 id="+eid+" value="+jid+">立即申请</div>"
              }
              $(status).appendTo(".divJob_2");
           });
            $(document).on("click",".divJob_2_1",function () {
               if (isNaN(uid)){
                  uid=null;
               }
               var jid=$(this).attr("value");
               var eid=$(this).attr("id");
               var jobuserstatus;
               if ($(this).text()==="已申请"){
                  jobuserstatus="0";
                  $(this).text("立即申请");
                  $.get("updateStatus","uid="+uid+"&jid="+jid+"&eid="+eid+"&jobuserstatus="+jobuserstatus)
               }else if ($(this).text()==="立即申请"){
                  if (uid==null){
                     $.message({
                        message : '您还未登录!正在为您跳转到登录界面！',
                        type : 'warning' ,
                        time : '1500'
                     });
                     setTimeout(function(){
                        //doSomething(这里写时间到之后需要去做的事情)
                        window.location = "login.jsp";
                     }, 1500);
                  }else {
                     jobuserstatus="1";
                     $(this).text("已申请");
                     $.get("updateStatus","uid="+uid+"&jid="+jid+"&eid="+eid+"&jobuserstatus="+jobuserstatus)
                  }

               }
            });


</script>
<body>
<div class="compHeader">
   <div class="main">
      <div class="header_l">
         <a href="index.jsp">
            <img src="images/logo_1.png" />
            <img src="images/logo_2.png" />
         </a>
         <span>www.xxx.com</span>
      </div>
      <div class="header_c">
         <input name="" type="text" placeholder="请输入关键字..." class="keyword"/>
         <input name="" type="button" class="btnsearch"/>
      </div>
      <div class="header_r">
         <a name="persionloging" href="#">个人登录</a>
         <a name="persionregister" href="#">注册</a>
      </div>
   </div>
</div>

<div class="jobtypeBox">
   <div class="DivLeft">
      <div class="DivCompany">
         <div class="DivCompany_img"><img src="images/company.gif" width="180"/></div>

         <h1><a href="getEnterprise?eid=${job.enterprise.eid}">${job.enterprise.ename}</a><img src="images/16.png" /></h1>
         <div class="clear"></div>
         <div class="DivLeft_2">
            <p>行业：${job.enterprise.etype}</p>
            <p>性质：${job.enterprise.edomain}</p>
            <p>规模：${job.enterprise.escale}</p>
            <p>企业主页：<a href="">${job.enterprise.ewebsite}</a></p>
            <p>详细地址：${job.enterprise.eaddress}</p>
            <p>${job.enterprise.eprofile}</p>
         </div>
         <div class="clear"></div>
      </div>
   </div>
   <div class="DivRight">
      <div class="DivRight_2">
         <div class="divJob_1">
            <div class="divJob_l">
               <div class="tit">
                  <h2>${job.jname}</h2>
                  <div class="clear"></div>
               </div>
               <div class="bqbox">
                  <label>年终奖</label>
                  <label>节日福利</label>
                  <label>双休</label>
                  <label>8小时工作制</label>
                  <label>带薪年假</label>
                  <label>交通补贴</label>
                  <div class="clear"></div>
               </div>
               <div class="jobsub">工作地点： ${job.jplace}</div>
               <div class="jobsub">职位月薪： ${job.jmonthsalary} [参考工资]</div>
               <div class="jobsub">招聘人数： ${job.jrecruitsbumber}</div>
               <div class="jobsub">最低学历： ${job.jmineducation}</div>
               <div class="jobsub">年龄要求： ${job.jagerequirement}</div>
               <div class="jobsub">工作经验： ${job.jexperience}</div>
               <div class="jobsub">招聘方式： 全职</div>
               <div class="jobsub">刷新日期： ${job.jrefreshdatestr}</div>
            </div>
         </div>
         <div class="clear"></div>
         <div class="divJob_2">

         </div>
         <div class="clear"></div>
         <div class="divJob_3">
            <b>岗位职责：</b><br />
            <div class="con">
               <%--                1、执行公司的贸易业务，实施贸易规程，开拓市场；<br />--%>
               <%--                2、负责联系客户、编制报价、参与商务谈判，签订合同；<br />--%>
               <%--                3、负责生产跟踪、发货、现场监装；<br />--%>
               <%--                4、负责单证审核、报关、结算、售后服务等工作；<br />--%>
               <%--                5、客户的拓展与维护；<br />--%>
               <%--                6、业务相关资料的整理和归档；<br />--%>
               <%--                7、相关业务工作的汇报。 --%>
               ${job.jresponsibility}
            </div>
            <b>岗位要求：</b><br />
            <div class="con">
               <%--                1、大专及以上学历，国际贸易、商务英语类相关专业；<br />--%>
               <%--                2、2年以上贸易领域业务操作经验，有外企工作经历者优先考虑；<br />--%>
               <%--                3、熟悉贸易操作流程及相关法律法规，具备贸易领域专业知识；<br />--%>
               <%--                4、具有较高的英语水平，较好的计算机操作水平，有报关证等相关贸易操作证书者优先考虑；<br />--%>
               <%--                5、具有良好的业务拓展能力和商务谈判技巧，公关意识强，具有较强的事业心、团队合作精神和独立处事能力，勇于开拓和创新。--%>
               ${job.jrequirements}
            </div>
         </div>
         <div class="clear"></div>
      </div>
   </div>
</div>

<div class="clear"></div>
<div class="footer">
</div>
</body>
</html>
